package com.lh.java.io;

import java.io.DataInputStream;
import java.io.FileInputStream;

public class DataIn {
	public static void main(String args[]) {

		DataInputStream dis = null;

		try {

			dis = new DataInputStream(new FileInputStream("dataout.txt"));

			System.out.println(dis.readInt());

			System.out.println(dis.readBoolean());

			System.out.println(dis.readLong());

			System.out.println(dis.readChar());

		} catch (Exception e) {

			e.printStackTrace();

		} finally {

			if (dis != null)

				try {

					dis.close();

				} catch (Exception e) {

				}
		}
	}
}
